﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:WpfHero="clr-namespace:WpfHeroResponse"
	xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Luna" xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
    
    <WpfHero:BooleanToBoldConverter x:Key="BooleanToBoldConverter"/>
	<DataTemplate x:Key="SubDirectoriesTemplate">
		<DataTemplate.Resources>
			<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
			<Storyboard x:Key="IsSelectedEnterStoryboard" x:Name="IsSelectedEnterStoryboard">
				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(FrameworkElement.LayoutTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
					<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
					<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1.2" KeySpline="0,0,0.5,1"/>
				</DoubleAnimationUsingKeyFrames>
				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(FrameworkElement.LayoutTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
					<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
					<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1.6" KeySpline="0,0,0.5,1"/>
				</DoubleAnimationUsingKeyFrames>
				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
					<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.5" KeySpline="0,0,0.5,1"/>
				</DoubleAnimationUsingKeyFrames>
				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle1" Storyboard.TargetProperty="(UIElement.Opacity)">
					<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
				</DoubleAnimationUsingKeyFrames>
				<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
					<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#33FFFFFF"/>
				</ColorAnimationUsingKeyFrames>
			</Storyboard>
			<Storyboard x:Key="IsSelectedExitStoryboard" x:Name="IsSelectedExitStoryboard">
				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(FrameworkElement.LayoutTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
					<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" KeySpline="0.5,0,1,1"/>
				</DoubleAnimationUsingKeyFrames>
				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(FrameworkElement.LayoutTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
					<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" KeySpline="0.5,0,1,1"/>
				</DoubleAnimationUsingKeyFrames>
				<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
					<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#19FFFFFF"/>
				</ColorAnimationUsingKeyFrames>
				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle1" Storyboard.TargetProperty="(UIElement.Opacity)">
					<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.6"/>
				</DoubleAnimationUsingKeyFrames>
				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
					<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
				</DoubleAnimationUsingKeyFrames>
			</Storyboard>
		</DataTemplate.Resources>
		<Grid MinWidth="200" MinHeight="60" x:Name="grid" RenderTransformOrigin="0.5,0.5">
			<Grid.LayoutTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="1" ScaleY="1"/>
					<SkewTransform AngleX="0" AngleY="0"/>
					<RotateTransform Angle="0"/>
					<TranslateTransform X="0" Y="0"/>
				</TransformGroup>
			</Grid.LayoutTransform>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*"/>
			</Grid.ColumnDefinitions>
			<Rectangle HorizontalAlignment="Stretch" Stroke="{x:Null}" RadiusY="7.5" RadiusX="7.5" Grid.ColumnSpan="1">
				<Rectangle.Fill>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FF2B0101" Offset="1"/>
						<GradientStop Color="#FF570101" Offset="0"/>
					</LinearGradientBrush>
				</Rectangle.Fill>
			</Rectangle>
			<Rectangle HorizontalAlignment="Stretch" Stroke="{x:Null}" RadiusY="7.5" RadiusX="7.5" Opacity="0" x:Name="rectangle">
				<Rectangle.Fill>
					<RadialGradientBrush>
						<RadialGradientBrush.RelativeTransform>
							<TransformGroup>
								<ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1.167" ScaleY="0.958"/>
								<SkewTransform AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5"/>
								<RotateTransform Angle="0" CenterX="0.5" CenterY="0.5"/>
								<TranslateTransform X="0" Y="0"/>
							</TransformGroup>
						</RadialGradientBrush.RelativeTransform>
						<GradientStop Color="#002B1601" Offset="1"/>
						<GradientStop Color="#B2EC8B02" Offset="0.29"/>
						<GradientStop Color="#66EC8B02" Offset="0.571"/>
					</RadialGradientBrush>
				</Rectangle.Fill>
			</Rectangle>
			<Canvas HorizontalAlignment="Right" Margin="0,-30.448,10,-57.031" Width="49.617" Visibility="{Binding Path=HasSong, Converter={StaticResource BooleanToVisibilityConverter}, Mode=Default}">
				<Canvas Width="49.617" Opacity="0.4" RenderTransformOrigin="0.5,0.5" Height="73.618" Canvas.Top="73.861">
					<Canvas.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="1" ScaleY="-1"/>
							<SkewTransform AngleX="0" AngleY="0"/>
							<RotateTransform Angle="0"/>
							<TranslateTransform X="0" Y="0"/>
						</TransformGroup>
					</Canvas.RenderTransform>
					<Canvas.OpacityMask>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#00FFFFFF" Offset="0.817"/>
							<GradientStop Color="#FFFFFFFF" Offset="1"/>
						</LinearGradientBrush>
					</Canvas.OpacityMask>
					<Path x:Name="Path_Copy1" Stretch="Fill" Fill="#FFEA7F00" Data="F1 M 169.859,461.669C 181.812,457.882 193.731,458.886 202.077,463.518L 202.077,346.033L 202.056,346.023L 202.056,299.357L 337.389,359.076L 337.389,368.778L 337.411,368.778L 337.411,542.256C 337.78,554.673 326.486,567.679 309.697,572.998C 290.509,579.076 271.408,572.812 267.035,559.006C 262.661,545.2 274.671,529.08 293.859,523.002C 305.812,519.216 317.731,520.219 326.077,524.851L 326.077,400.751L 213.411,351.034L 213.411,480.922C 213.78,493.34 202.486,506.346 185.697,511.665C 166.509,517.743 147.408,511.478 143.035,497.672C 138.661,483.867 150.671,467.747 169.859,461.669 Z " Opacity="0.1" Width="49.617" Height="73.609">
						<Path.Stroke>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#FFFFDD00" Offset="0"/>
								<GradientStop Color="#FFCA4101" Offset="1"/>
							</LinearGradientBrush>
						</Path.Stroke>
						<Path.OpacityMask>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#00FFFFFF" Offset="0.415"/>
								<GradientStop Color="#FFFFFFFF" Offset="1"/>
							</LinearGradientBrush>
						</Path.OpacityMask>
					</Path>
					<Path x:Name="Path1" Stretch="Fill" Fill="#FFEA7F00" Data="F1 M 169.859,461.669C 181.812,457.882 193.731,458.886 202.077,463.518L 202.077,346.033L 202.056,346.023L 202.056,299.357L 337.389,359.076L 337.389,368.778L 337.411,368.778L 337.411,542.256C 337.78,554.673 326.486,567.679 309.697,572.998C 290.509,579.076 271.408,572.812 267.035,559.006C 262.661,545.2 274.671,529.08 293.859,523.002C 305.812,519.216 317.731,520.219 326.077,524.851L 326.077,400.751L 213.411,351.034L 213.411,480.922C 213.78,493.34 202.486,506.346 185.697,511.665C 166.509,517.743 147.408,511.478 143.035,497.672C 138.661,483.867 150.671,467.747 169.859,461.669 Z " Opacity="1" Width="26.614" Height="37.609" Canvas.Left="23.003" Canvas.Top="36">
						<Path.Stroke>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#FFFFDD00" Offset="0"/>
								<GradientStop Color="#FFCA4101" Offset="1"/>
							</LinearGradientBrush>
						</Path.Stroke>
					</Path>
				</Canvas>
				<Canvas Width="49.617" Height="73.609">
					<Path x:Name="Path_Copy" Stretch="Fill" Fill="#FFEA7F00" Data="F1 M 169.859,461.669C 181.812,457.882 193.731,458.886 202.077,463.518L 202.077,346.033L 202.056,346.023L 202.056,299.357L 337.389,359.076L 337.389,368.778L 337.411,368.778L 337.411,542.256C 337.78,554.673 326.486,567.679 309.697,572.998C 290.509,579.076 271.408,572.812 267.035,559.006C 262.661,545.2 274.671,529.08 293.859,523.002C 305.812,519.216 317.731,520.219 326.077,524.851L 326.077,400.751L 213.411,351.034L 213.411,480.922C 213.78,493.34 202.486,506.346 185.697,511.665C 166.509,517.743 147.408,511.478 143.035,497.672C 138.661,483.867 150.671,467.747 169.859,461.669 Z " Opacity="0.1" Width="49.617" Height="73.609">
						<Path.Stroke>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#FFFFDD00" Offset="0"/>
								<GradientStop Color="#FFCA4101" Offset="1"/>
							</LinearGradientBrush>
						</Path.Stroke>
						<Path.OpacityMask>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#00FFFFFF" Offset="0.415"/>
								<GradientStop Color="#FFFFFFFF" Offset="1"/>
							</LinearGradientBrush>
						</Path.OpacityMask>
					</Path>
					<Path x:Name="Path" Stretch="Fill" Fill="#FFEA7F00" Data="F1 M 169.859,461.669C 181.812,457.882 193.731,458.886 202.077,463.518L 202.077,346.033L 202.056,346.023L 202.056,299.357L 337.389,359.076L 337.389,368.778L 337.411,368.778L 337.411,542.256C 337.78,554.673 326.486,567.679 309.697,572.998C 290.509,579.076 271.408,572.812 267.035,559.006C 262.661,545.2 274.671,529.08 293.859,523.002C 305.812,519.216 317.731,520.219 326.077,524.851L 326.077,400.751L 213.411,351.034L 213.411,480.922C 213.78,493.34 202.486,506.346 185.697,511.665C 166.509,517.743 147.408,511.478 143.035,497.672C 138.661,483.867 150.671,467.747 169.859,461.669 Z " Opacity="1" Width="26.614" Height="37.609" Canvas.Left="23.003" Canvas.Top="36">
						<Path.Stroke>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#FFFFDD00" Offset="0"/>
								<GradientStop Color="#FFCA4101" Offset="1"/>
							</LinearGradientBrush>
						</Path.Stroke>
					</Path>
				</Canvas>
			</Canvas>
			<TextBlock Text="{Binding Path=Name, Mode=OneWay}" FontWeight="{Binding Path=HasSong, Converter={StaticResource BooleanToBoldConverter}, Mode=Default}" Margin="10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center"/>
			<Rectangle HorizontalAlignment="Stretch" RadiusX="2.51" RadiusY="2.51" Margin="3,3,3,3" Grid.ColumnSpan="1" Opacity="0.6" x:Name="rectangle1">
				<Rectangle.Stroke>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#99FAF5F5" Offset="0"/>
						<GradientStop Color="#99FFFFFF" Offset="1"/>
						<GradientStop Color="#00FCFAFA" Offset="0.339"/>
						<GradientStop Color="#0FFCFAFA" Offset="0.629"/>
					</LinearGradientBrush>
				</Rectangle.Stroke>
				<Rectangle.Fill>
					<RadialGradientBrush>
						<RadialGradientBrush.RelativeTransform>
							<TransformGroup>
								<ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.015" ScaleY="1.734"/>
								<SkewTransform AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5"/>
								<RotateTransform Angle="0" CenterX="0.5" CenterY="0.5"/>
								<TranslateTransform X="0.005" Y="-0.945"/>
							</TransformGroup>
						</RadialGradientBrush.RelativeTransform>
						<GradientStop Color="#19FFFFFF" Offset="0.955"/>
						<GradientStop Color="#19FFFFFF" Offset="0"/>
						<GradientStop Color="#00FFFFFF" Offset="1"/>
					</RadialGradientBrush>
				</Rectangle.Fill>
			</Rectangle>
		</Grid>
		<DataTemplate.Triggers>
			<DataTrigger Binding="{Binding Path=IsSelected, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}, Mode=FindAncestor}}" Value="True">
				<DataTrigger.EnterActions>
					<BeginStoryboard x:Name="EnterIsSelected" Storyboard="{StaticResource IsSelectedEnterStoryboard}" />
					<!--<BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(FrameworkElement.LayoutTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1.2" KeySpline="0,0,0.5,1"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(FrameworkElement.LayoutTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1.4" KeySpline="0,0,0.5,1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>                        
                    </BeginStoryboard>-->
				</DataTrigger.EnterActions>
				<DataTrigger.ExitActions>
					<BeginStoryboard x:Name="ExitIsSelected" Storyboard="{StaticResource IsSelectedExitStoryboard}" />
					<!--<BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(FrameworkElement.LayoutTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" KeySpline="0.5,0,1,1"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(FrameworkElement.LayoutTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" KeySpline="0.5,0,1,1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </BeginStoryboard>-->
				</DataTrigger.ExitActions>
			</DataTrigger>
		</DataTemplate.Triggers>    	
	</DataTemplate>
    <Color x:Key="WphHeroBlackColor">#FF000000</Color>
    <Color x:Key="WpfHeroDarkRedColor">#FF360000</Color>
    <Color x:Key="WpfHeroRedColor">#FF880606</Color>
    <LinearGradientBrush x:Key="BackgroundGradient" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="{DynamicResource WpfHeroDarkRedColor}" Offset="0.594"/>
        <GradientStop Color="{StaticResource WphHeroBlackColor}" Offset="0.397"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ListBorder" Color="#FFA5ACB2"/>
    <Style x:Key="SongBrowserStyle" TargetType="{x:Type ListBox}">
    	<Setter Property="BorderThickness" Value="1"/>
    	<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
    	<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
    	<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
    	<Setter Property="VerticalContentAlignment" Value="Center"/>
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="{x:Type ListBox}">
    				<Grid Margin="-15,-15,-15,-15">
    					<Grid.RowDefinitions>
    						<RowDefinition Height="0.5*"/>
    						<RowDefinition Height="0.5*"/>
    					</Grid.RowDefinitions>
    					<Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Stroke="{x:Null}" RadiusY="10" RadiusX="10" Grid.RowSpan="2">
    						<Rectangle.Fill>
    							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    								<GradientStop Color="{DynamicResource WpfHeroRedColor}" Offset="0"/>
    								<GradientStop Color="{DynamicResource WpfHeroDarkRedColor}" Offset="1"/>
    							</LinearGradientBrush>
    						</Rectangle.Fill>
    					</Rectangle>
    					<Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Stroke="{x:Null}" RadiusX="10" RadiusY="10" Margin="2,2,2,-10" Opacity="0.8">
    						<Rectangle.Fill>
    							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    								<GradientStop Color="#FFFFFFFF" Offset="0"/>
    								<GradientStop Color="#00FFFFFF" Offset="0.107"/>
    								<GradientStop Color="#3FFFFFFF" Offset="0.911"/>
    								<GradientStop Color="#00FFFFFF" Offset="0.924"/>
    								<GradientStop Color="#0BFFFFFF" Offset="0.379"/>
    							</LinearGradientBrush>
    						</Rectangle.Fill>
    					</Rectangle>
    					<Border Margin="15,15,15,15" x:Name="Bd" SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1" Grid.RowSpan="2">
    						<ScrollViewer Padding="{TemplateBinding Padding}" Focusable="false" Style="{DynamicResource ScrollViewerStyle}">
    							<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
    						</ScrollViewer>
    					</Border>
    				</Grid>
    				<ControlTemplate.Triggers>
    					<Trigger Property="IsEnabled" Value="false">
    						<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
    					</Trigger>
    					<Trigger Property="IsGrouping" Value="true">
    						<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
    					</Trigger>
    				</ControlTemplate.Triggers>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    	<Setter Property="Background">
    		<Setter.Value>
    			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    				<GradientStop Color="#FF000000" Offset="1"/>
    				<GradientStop Color="#FF270303" Offset="0.54"/>
    			</LinearGradientBrush>
    		</Setter.Value>
    	</Setter>
    	<Setter Property="BorderBrush">
    		<Setter.Value>
    			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    				<GradientStop Color="#00000000" Offset="0.54"/>
    				<GradientStop Color="#FFFF5704" Offset="1"/>
    				<GradientStop Color="#FFFF5704" Offset="0"/>
    			</LinearGradientBrush>
    		</Setter.Value>
    	</Setter>
    	<Setter Property="Foreground" Value="#FFFFA700"/>
    	<Setter Property="FontFamily" Value="Zero Threes"/>
    	<Setter Property="FontSize" Value="24"/>
    	<Setter Property="FontStyle" Value="Italic"/>
    	<Setter Property="ItemContainerStyle" Value="{DynamicResource SongBrowserItemStyle}"/>
    </Style>
    <Style x:Key="SongBrowserItemStyle" TargetType="{x:Type ListBoxItem}">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
        <Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
        <Setter Property="Padding" Value="2,0,0,0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ListBoxItem}">
                    <Border SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
                        <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style x:Key="ScrollViewerStyle" TargetType="{x:Type ScrollViewer}">
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="{x:Type ScrollViewer}">
    				<Grid x:Name="Grid" Background="{TemplateBinding Background}">
    					<Grid.ColumnDefinitions>
    						<ColumnDefinition Width="*"/>
    						<ColumnDefinition Width="Auto"/>
    					</Grid.ColumnDefinitions>
    					<Grid.RowDefinitions>
    						<RowDefinition Height="*"/>
    						<RowDefinition Height="Auto"/>
    					</Grid.RowDefinitions>
    					<Rectangle x:Name="Corner" Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" Grid.Column="1" Grid.Row="1"/>
    					<ScrollContentPresenter Margin="{TemplateBinding Padding}" x:Name="PART_ScrollContentPresenter" Grid.Column="0" Grid.Row="0" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" CanContentScroll="{TemplateBinding CanContentScroll}" CanHorizontallyScroll="False" CanVerticallyScroll="False"/>
    					<ScrollBar Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Cursor="Arrow" x:Name="PART_VerticalScrollBar" Style="{DynamicResource ScrollBarStyle}" Grid.Column="1" Grid.Row="0" ViewportSize="{TemplateBinding ViewportHeight}" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Value="{Binding Path=VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" AutomationProperties.AutomationId="VerticalScrollBar"/>
    					<ScrollBar Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Cursor="Arrow" x:Name="PART_HorizontalScrollBar" Grid.Column="0" Grid.Row="1" Orientation="Horizontal" ViewportSize="{TemplateBinding ViewportWidth}" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Value="{Binding Path=HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" AutomationProperties.AutomationId="HorizontalScrollBar"/>
    				</Grid>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    		<Style.Triggers>
    			<Trigger Property="IsEnabled" Value="false">
    				<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
    			</Trigger>
    		</Style.Triggers>
    	</Style> 
		
		<LinearGradientBrush x:Key="VerticalScrollBarPageButtonNormal" EndPoint="1, 0" StartPoint="0, 0">
    		<GradientStop Color="#EEEDE5" Offset="0"/>
    		<GradientStop Color="#EEEDE5" Offset="0.05"/>
    		<GradientStop Color="#F3F1EC" Offset="0.06"/>
    		<GradientStop Color="#FEFEFE" Offset="0.94"/>
    		<GradientStop Color="#EEEDE5" Offset="0.95"/>
    		<GradientStop Color="#EEEDE5" Offset="1"/>
    	</LinearGradientBrush>
    	<Style x:Key="ScrollBarButton" TargetType="{x:Type RepeatButton}">
    		<Setter Property="OverridesDefaultStyle" Value="true"/>
    		<Setter Property="Focusable" Value="false"/>
    		<Setter Property="IsTabStop" Value="false"/>
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type RepeatButton}">
    					<Viewbox Stretch="Uniform">
    						<Grid Width="125" Height="35">
    							<Rectangle Margin="0,0,0,-100" x:Name="ClickRectangle" Width="Auto" Height="Auto" Fill="#7FFFFFFF" Stroke="#FFFFFFFF" RadiusX="2.181" RadiusY="2.181">
    								<Rectangle.OpacityMask>
    									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    										<GradientStop Color="#00FFFFFF" Offset="1"/>
    										<GradientStop Color="#FFFFFFFF" Offset="0"/>
    									</LinearGradientBrush>
    								</Rectangle.OpacityMask>
    							</Rectangle>
    							<Path x:Name="Path" Stretch="Fill" Fill="#FFFF9700" Data="F1 M 715.17,292.398L 730.727,307.954L 786.157,363.385L 755.044,363.385L 715.17,323.51L 675.296,363.385L 644.183,363.385L 699.614,307.954L 715.17,292.398 Z " RenderTransformOrigin="0.5,0.5" d:LayoutOverrides="HorizontalAlignment, VerticalAlignment" Margin="41.823,7.162,41.824,7.162" Width="Auto" Height="Auto">
    								<Path.RenderTransform>
    									<TransformGroup>
    										<ScaleTransform ScaleX="1" ScaleY="1"/>
    										<SkewTransform AngleX="0" AngleY="0"/>
    										<RotateTransform Angle="0"/>
    										<TranslateTransform X="0" Y="0"/>
    									</TransformGroup>
    								</Path.RenderTransform>
    							</Path>
    						</Grid>
    					</Viewbox>
    					<ControlTemplate.Triggers>
    						<Trigger Property="IsPressed" Value="False">
    							<Setter Property="Opacity" TargetName="ClickRectangle" Value="0"/>
    							<Setter Property="Visibility" TargetName="ClickRectangle" Value="Collapsed"/>
    						</Trigger>
    					</ControlTemplate.Triggers>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    	</Style>
    	<LinearGradientBrush x:Key="VerticalScrollBarPageButtonPressed" EndPoint="1, 0" StartPoint="0, 0">
    		<GradientStop Color="#D7D5C2" Offset="0"/>
    		<GradientStop Color="#D7D5C2" Offset="0.05"/>
    		<GradientStop Color="#E3DED3" Offset="0.06"/>
    		<GradientStop Color="#FDFDF6" Offset="0.94"/>
    		<GradientStop Color="#D7D5C2" Offset="0.95"/>
    		<GradientStop Color="#D7D5C2" Offset="1"/>
    	</LinearGradientBrush>
    	<LinearGradientBrush x:Key="VerticalScrollBarPageButtonDisabled" EndPoint="1, 0" StartPoint="0, 0">
    		<GradientStop Color="#EEEDE5" Offset="0"/>
    		<GradientStop Color="#EEEDE5" Offset="0.05"/>
    		<GradientStop Color="#F3F1EC" Offset="0.06"/>
    		<GradientStop Color="#FEFEFE" Offset="0.94"/>
    		<GradientStop Color="#EEEDE5" Offset="0.95"/>
    		<GradientStop Color="#EEEDE5" Offset="1"/>
    	</LinearGradientBrush>
    	<Style x:Key="VerticalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
    		<Setter Property="OverridesDefaultStyle" Value="true"/>
    		<Setter Property="Background" Value="Transparent"/>
    		<Setter Property="Focusable" Value="false"/>
    		<Setter Property="IsTabStop" Value="false"/>
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type RepeatButton}">
    					<Rectangle x:Name="Bg" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Fill="{TemplateBinding Background}"/>
    					<ControlTemplate.Triggers>
    						<Trigger Property="IsPressed" Value="true">
    							<Setter Property="Fill" TargetName="Bg" Value="{StaticResource VerticalScrollBarPageButtonPressed}"/>
    						</Trigger>
    						<Trigger Property="IsEnabled" Value="false">
    							<Setter Property="Fill" TargetName="Bg" Value="{StaticResource VerticalScrollBarPageButtonDisabled}"/>
    						</Trigger>
    					</ControlTemplate.Triggers>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    	</Style>
    	<Style x:Key="ScrollBarThumb" TargetType="{x:Type Thumb}">
    		<Setter Property="OverridesDefaultStyle" Value="true"/>
    		<Setter Property="IsTabStop" Value="false"/>
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type Thumb}">
    					<Grid>
    						<Rectangle Stroke="{x:Null}" RadiusX="2.181" RadiusY="2.181">
    							<Rectangle.Fill>
    								<LinearGradientBrush EndPoint="0,0.5" StartPoint="1,0.5">
    									<GradientStop Color="#FF410000" Offset="0"/>
    									<GradientStop Color="#FFFF0606" Offset="0.996"/>
    									<GradientStop Color="#FFD81C00" Offset="0.777"/>
    								</LinearGradientBrush>
    							</Rectangle.Fill>
    						</Rectangle>
    						<Rectangle RadiusX="0.737" RadiusY="0.737" Opacity="0.5">
    							<Rectangle.Fill>
    								<LinearGradientBrush EndPoint="0,0.5" StartPoint="1,0.5">
    									<GradientStop Color="#FFFFFFFF" Offset="0.482"/>
    									<GradientStop Color="#00FFFFFF" Offset="0.473"/>
    									<GradientStop Color="#26FFFFFF" Offset="1"/>
    								</LinearGradientBrush>
    							</Rectangle.Fill>
    							<Rectangle.Stroke>
    								<LinearGradientBrush EndPoint="0,0.5" StartPoint="1,0.5">
    									<GradientStop Color="#FFFFFFFF" Offset="0"/>
    									<GradientStop Color="#FFFFFFFF" Offset="1"/>
    									<GradientStop Color="#00FEFEFE" Offset="0.433"/>
    									<GradientStop Color="#00FEFEFE" Offset="0.683"/>
    								</LinearGradientBrush>
    							</Rectangle.Stroke>
    						</Rectangle>
    					</Grid>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    	</Style>
    	<LinearGradientBrush x:Key="HorizontalScrollBarPageButtonNormal" EndPoint="0, 1" StartPoint="0, 0">
    		<GradientStop Color="#EEEDE5" Offset="0"/>
    		<GradientStop Color="#EEEDE5" Offset="0.05"/>
    		<GradientStop Color="#F3F1EC" Offset="0.06"/>
    		<GradientStop Color="#FEFEFE" Offset="0.94"/>
    		<GradientStop Color="#EEEDE5" Offset="0.95"/>
    		<GradientStop Color="#EEEDE5" Offset="1"/>
    	</LinearGradientBrush>
    	<LinearGradientBrush x:Key="HorizontalScrollBarPageButtonPressed" EndPoint="0, 1" StartPoint="0, 0">
    		<GradientStop Color="#D7D5C2" Offset="0"/>
    		<GradientStop Color="#D7D5C2" Offset="0.05"/>
    		<GradientStop Color="#E3DED3" Offset="0.06"/>
    		<GradientStop Color="#FDFDF6" Offset="0.94"/>
    		<GradientStop Color="#D7D5C2" Offset="0.95"/>
    		<GradientStop Color="#D7D5C2" Offset="1"/>
    	</LinearGradientBrush>
    	<LinearGradientBrush x:Key="HorizontalScrollBarPageButtonDisabled" EndPoint="0, 1" StartPoint="0, 0">
    		<GradientStop Color="#EEEDE5" Offset="0"/>
    		<GradientStop Color="#EEEDE5" Offset="0.05"/>
    		<GradientStop Color="#F3F1EC" Offset="0.06"/>
    		<GradientStop Color="#FEFEFE" Offset="0.94"/>
    		<GradientStop Color="#EEEDE5" Offset="0.95"/>
    		<GradientStop Color="#EEEDE5" Offset="1"/>
    	</LinearGradientBrush>
    	<Style x:Key="HorizontalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
    		<Setter Property="OverridesDefaultStyle" Value="true"/>
    		<Setter Property="Background" Value="Transparent"/>
    		<Setter Property="Focusable" Value="false"/>
    		<Setter Property="IsTabStop" Value="false"/>
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type RepeatButton}">
    					<Rectangle x:Name="Bg" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Fill="{TemplateBinding Background}"/>
    					<ControlTemplate.Triggers>
    						<Trigger Property="IsPressed" Value="true">
    							<Setter Property="Fill" TargetName="Bg" Value="{StaticResource HorizontalScrollBarPageButtonPressed}"/>
    						</Trigger>
    						<Trigger Property="IsEnabled" Value="false">
    							<Setter Property="Fill" TargetName="Bg" Value="{StaticResource HorizontalScrollBarPageButtonDisabled}"/>
    						</Trigger>
    					</ControlTemplate.Triggers>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    	</Style>
    	<Style x:Key="ScrollBarStyle" TargetType="{x:Type ScrollBar}">
    		<Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
    		<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
    		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
    		<Setter Property="Width" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
    		<Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type ScrollBar}">
    					<Grid SnapsToDevicePixels="true" Background="{TemplateBinding Background}">
    						<Grid.RowDefinitions>
    							<RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
    							<RowDefinition Height="0.00001*"/>
    							<RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
    						</Grid.RowDefinitions>
    						<RepeatButton Style="{StaticResource ScrollBarButton}" Command="{x:Static ScrollBar.LineUpCommand}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="UpArrow"/>
    						<RepeatButton Style="{DynamicResource ScrollBarDownButtonStyle}" Grid.Row="2" Command="{x:Static ScrollBar.LineDownCommand}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="DownArrow"/>
    						<Track x:Name="PART_Track" Grid.Row="0" IsDirectionReversed="true" Grid.RowSpan="3">
    							<Track.Thumb>
    								<Thumb Style="{StaticResource ScrollBarThumb}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="VerticalGripper"/>
    							</Track.Thumb>
    							<Track.IncreaseRepeatButton>
    								<RepeatButton Style="{StaticResource VerticalScrollBarPageButton}" Command="{x:Static ScrollBar.PageDownCommand}"/>
    							</Track.IncreaseRepeatButton>
    							<Track.DecreaseRepeatButton>
    								<RepeatButton Style="{StaticResource VerticalScrollBarPageButton}" Command="{x:Static ScrollBar.PageUpCommand}"/>
    							</Track.DecreaseRepeatButton>
    						</Track>
    					</Grid>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    		<Setter Property="Background">
    			<Setter.Value>
    				<LinearGradientBrush EndPoint="1,0" StartPoint="0,0">
    					<GradientStop Color="#00390303" Offset="0"/>
    					<GradientStop Color="#FF390303" Offset="1"/>
    				</LinearGradientBrush>
    			</Setter.Value>
    		</Setter>
    		<Style.Triggers>
    			<Trigger Property="Orientation" Value="Horizontal">
    				<Setter Property="Width" Value="Auto"/>
    				<Setter Property="MinWidth" Value="0"/>
    				<Setter Property="Background" Value="{StaticResource HorizontalScrollBarPageButtonNormal}"/>
    				<Setter Property="Height" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
    				<Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
    				<Setter Property="Template">
    					<Setter.Value>
    						<ControlTemplate TargetType="{x:Type ScrollBar}">
    							<Grid SnapsToDevicePixels="true" Background="{TemplateBinding Background}">
    								<Grid.ColumnDefinitions>
    									<ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}"/>
    									<ColumnDefinition Width="0.00001*"/>
    									<ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}"/>
    								</Grid.ColumnDefinitions>
    								<RepeatButton Style="{StaticResource ScrollBarButton}" Command="{x:Static ScrollBar.LineLeftCommand}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="LeftArrow"/>
    								<Track x:Name="PART_Track" Grid.Column="1">
    									<Track.Thumb>
    										<Thumb Style="{StaticResource ScrollBarThumb}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="HorizontalGripper"/>
    									</Track.Thumb>
    									<Track.IncreaseRepeatButton>
    										<RepeatButton Style="{StaticResource HorizontalScrollBarPageButton}" Command="{x:Static ScrollBar.PageRightCommand}"/>
    									</Track.IncreaseRepeatButton>
    									<Track.DecreaseRepeatButton>
    										<RepeatButton Style="{StaticResource HorizontalScrollBarPageButton}" Command="{x:Static ScrollBar.PageLeftCommand}"/>
    									</Track.DecreaseRepeatButton>
    								</Track>
    								<RepeatButton Style="{StaticResource ScrollBarButton}" Grid.Column="2" Command="{x:Static ScrollBar.LineRightCommand}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="RightArrow"/>
    							</Grid>
    						</ControlTemplate>
    					</Setter.Value>
    				</Setter>
    			</Trigger>
    		</Style.Triggers>
    	</Style>
	<Style x:Key="ProgressRingControlStyle" TargetType="{x:Type Control}">
		<Setter Property="Background" Value="#00FFFFFF"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Control}">
                	<Viewbox MinHeight="{TemplateBinding MinWidth}" MinWidth="{TemplateBinding MinHeight}">
                		<Canvas ClipToBounds="True" x:Name="ProgressRingCanvas" Width="318.667" Height="318.667" Background="{TemplateBinding Background}">
                			<Rectangle Width="260.667" Height="260.667" Fill="{DynamicResource ProgressGlowDrawingBrush}" Stroke="{x:Null}" Canvas.Left="30" Canvas.Top="33" x:Name="GlowingRectangle" RenderTransformOrigin="0.5,0.5">
                				<Rectangle.RenderTransform>
                					<TransformGroup>
                						<ScaleTransform ScaleX="1" ScaleY="1"/>
                						<SkewTransform AngleX="0" AngleY="0"/>
                						<RotateTransform Angle="0"/>
                						<TranslateTransform X="0" Y="0"/>
                					</TransformGroup>
                				</Rectangle.RenderTransform>
                			</Rectangle>
                			<Path x:Name="Path_Copy1" Stretch="Fill" Data="M 544.17,356.718C 605.106,356.718 654.504,406.116 654.504,467.051C 654.504,527.987 605.106,577.385 544.17,577.385C 483.235,577.385 433.837,527.987 433.837,467.051C 433.837,406.116 483.235,356.718 544.17,356.718 Z M 544.17,378.051C 593.324,378.051 633.17,417.898 633.17,467.051C 633.17,516.205 593.324,556.051 544.17,556.051C 495.017,556.051 455.17,516.205 455.17,467.051C 455.17,417.898 495.017,378.051 544.17,378.051 Z " Width="220.667" Height="220.667" Stroke="{x:Null}" StrokeThickness="1" Canvas.Left="50" Canvas.Top="56.76">
                				<Path.Fill>
                					<RadialGradientBrush>
                						<RadialGradientBrush.RelativeTransform>
                							<TransformGroup>
                								<ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="0.991" ScaleY="0.988"/>
                								<SkewTransform AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5"/>
                								<RotateTransform Angle="-89.302" CenterX="0.5" CenterY="0.5"/>
                								<TranslateTransform X="-0.022" Y="-0.029"/>
                							</TransformGroup>
                						</RadialGradientBrush.RelativeTransform>
                						<GradientStop Color="#00FFFFFF" Offset="0.759"/>
                						<GradientStop Color="#4CFFFFFF" Offset="0.906"/>
                						<GradientStop Color="#00FFFFFF" Offset="1"/>
                					</RadialGradientBrush>
                				</Path.Fill>
                			</Path>
                		</Canvas>
                	</Viewbox>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
		<Setter Property="MinHeight" Value="50"/>
		<Setter Property="MinWidth" Value="50"/>
    </Style>            	

	<Storyboard x:Key="ProgressRingRotationStoryboard">
		<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" RepeatBehavior="Forever" Storyboard.TargetName="ProgressRingRotationCanvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
			<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
			<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="360"/>
		</DoubleAnimationUsingKeyFrames>
	</Storyboard>

    <Style x:Key="ScrollBarDownButtonStyle" TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Focusable" Value="false"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Viewbox Stretch="Uniform">
                        <Grid Width="125" Height="35">
                            <Rectangle Margin="0,-100,0,0" x:Name="ClickRectangle" Width="Auto" Height="Auto" Fill="#7FFFFFFF" Stroke="#FFFFFFFF" RadiusX="2.181" RadiusY="2.181">
                                <Rectangle.OpacityMask>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#00FFFFFF" Offset="0"/>
                                        <GradientStop Color="#FFFFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.OpacityMask>
                            </Rectangle>
                            <Path x:Name="Path" Stretch="Fill" Fill="#FFFF9700" Data="F1 M 715.17,292.398L 730.727,307.954L 786.157,363.385L 755.044,363.385L 715.17,323.51L 675.296,363.385L 644.183,363.385L 699.614,307.954L 715.17,292.398 Z " RenderTransformOrigin="0.5,0.5" d:LayoutOverrides="HorizontalAlignment, VerticalAlignment" Margin="41.823,7.162,41.824,7.162" Width="Auto" Height="Auto">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="-1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="0"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                        </Grid>
                    </Viewbox>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="False">
                            <Setter Property="Opacity" TargetName="ClickRectangle" Value="0"/>
                            <Setter Property="Visibility" TargetName="ClickRectangle" Value="Collapsed"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
	
	<DrawingBrush x:Key="ProgressGlowDrawingBrush" Viewbox="0,0,260.667,260.667" ViewboxUnits="Absolute">
    		<DrawingBrush.Drawing>
    			<DrawingGroup>
    				<DrawingGroup>
    					<DrawingGroup.Transform>
    						<MatrixTransform Matrix="1,0,0,1,20,23"/>
    					</DrawingGroup.Transform>
    					<DrawingGroup.BitmapEffect>
    						<BlurBitmapEffect Radius="2"/>
    					</DrawingGroup.BitmapEffect>
    					<GeometryDrawing Brush="#FF000000" Geometry="M110.33299,0.50001288 C170.99283,0.50001288 220.16697,49.67415 220.16697,110.333 220.16697,170.99285 170.99283,220.16699 110.33299,220.16699 49.674132,220.16699 0.49999441,170.99285 0.49999441,110.333 0.49999441,49.67415 49.674132,0.50001288 110.33299,0.50001288 z M110.33299,21.736336 C159.26423,21.736336 198.92965,61.402756 198.92965,110.333 198.92965,159.26425 159.26423,198.92967 110.33299,198.92967 61.402738,198.92967 21.736317,159.26425 21.736317,110.333 21.736317,61.402756 61.402738,21.736336 110.33299,21.736336 z">
    						<GeometryDrawing.Pen>
    							<Pen Brush="#FFFF5C00" DashCap="Flat" EndLineCap="Flat" LineJoin="Miter" MiterLimit="10" StartLineCap="Flat" Thickness="1"/>
    						</GeometryDrawing.Pen>
    					</GeometryDrawing>
    				</DrawingGroup>
    				<DrawingGroup>
    					<DrawingGroup.OpacityMask>
    						<LinearGradientBrush EndPoint="0.955,0.023" StartPoint="0.048,0.029">
    							<GradientStop Color="#00FFFFFF" Offset="0"/>
    							<GradientStop Color="#FFFFFFFF" Offset="1"/>
    						</LinearGradientBrush>
    					</DrawingGroup.OpacityMask>
    					<DrawingGroup.Transform>
    						<MatrixTransform Matrix="-1,0,0,1,240.427,131.989"/>
    					</DrawingGroup.Transform>
    					<DrawingGroup.BitmapEffect>
    						<OuterGlowBitmapEffect GlowColor="#FFFF8100" GlowSize="10"/>
    					</DrawingGroup.BitmapEffect>
    					<GeometryDrawing Geometry="M110.32116,108.67699 C49.942075,108.67699 0.8910023,60.1771 9.7656397E-07,0.010236305 L21.337033,0.010236305 C22.225034,48.394127 61.725093,87.343039 110.32116,87.343039 156.87257,87.343039 195.0758,51.604169 198.99099,6.0679526 199.51484,1.4175131 202.69907,0.19194589 206.74061,0.010236305 L213.96584,0.010236305 C218.86354,-0.17447328 220.70064,2.1522815 220.37956,6.1957223 215.83488,63.427843 168.6167,108.67699 110.32116,108.67699 z">
    						<GeometryDrawing.Brush>
    							<RadialGradientBrush GradientOrigin="-0.14,0.514">
    								<RadialGradientBrush.RelativeTransform>
    									<TransformGroup>
    										<ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1.212" ScaleY="1.884"/>
    										<SkewTransform AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5"/>
    										<RotateTransform Angle="0" CenterX="0.5" CenterY="0.5"/>
    										<TranslateTransform X="0" Y="-0.274"/>
    									</TransformGroup>
    								</RadialGradientBrush.RelativeTransform>
    								<GradientStop Color="#FF000000" Offset="0.29"/>
    								<GradientStop Color="#FFFFAF04" Offset="1"/>
    							</RadialGradientBrush>
    						</GeometryDrawing.Brush>
    					</GeometryDrawing>
    				</DrawingGroup>
    			</DrawingGroup>
    		</DrawingBrush.Drawing>
    	</DrawingBrush>

    

    <WpfHero:GemPauseConverter x:Key="GemPauseConverter"/>
    <WpfHero:GemSizeConverter x:Key="GemSizeConverter"/>
    <DataTemplate x:Key="GemTemplate">
    	<WpfHero:GemControl Width="{Binding Converter={StaticResource GemSizeConverter}, Mode=OneWay}" Margin="{Binding Converter={StaticResource GemPauseConverter}, Mode=OneWay}" Status="{Binding Path=Status, Mode=Default}" Style="{DynamicResource GemControlStyle}" HorizontalAlignment="Left"/>
		<!--<WpfHero:Gem Width="{Binding Converter={StaticResource GemSizeConverter}, Mode=OneWay}" Margin="{Binding Converter={StaticResource GemPauseConverter}, Mode=OneWay}" ToolTip="{Binding Path=AsString, Mode=Default}" x:Name="gem" Status="{Binding Path=Status, Mode=Default}"/>-->
    </DataTemplate>
    <ItemsPanelTemplate x:Key="GemLinePanelTemplate">
        <StackPanel IsItemsHost="True" Orientation="Horizontal"/>
    </ItemsPanelTemplate>
	<Style x:Key="SoundScrollerStyle" TargetType="{x:Type WpfHero:HorizontalScroller}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type WpfHero:HorizontalScroller}">
					<Border SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
						<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<Style x:Key="GemControlStyle" TargetType="{x:Type WpfHero:GemControl}">            	
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type WpfHero:GemControl}">
					<ControlTemplate.Resources>
						<Storyboard x:Key="MissedStoryboard">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.Opacity)">
								<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.5" KeySpline="0,0,0.504,1"/>
							</DoubleAnimationUsingKeyFrames>
						</Storyboard>
						<Storyboard x:Key="GlowingStoryboard">
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowingRing" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever">
								<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
								<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
								<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.5"/>
							</DoubleAnimationUsingKeyFrames>
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowingRectangle" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever">
								<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
								<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
								<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.5"/>
							</DoubleAnimationUsingKeyFrames>
						</Storyboard>
					</ControlTemplate.Resources>
					<Grid Height="30" x:Name="grid" Width="{TemplateBinding Width}" MinWidth="60">
						<Rectangle Fill="{TemplateBinding Foreground}" Stroke="{x:Null}" HorizontalAlignment="Stretch" Margin="15,6,0,6" Width="Auto" Height="Auto" x:Name="GlowingRectangle" Visibility="Collapsed">
							<Rectangle.OpacityMask>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#00FFFFFF" Offset="0.031"/>
									<GradientStop Color="#00FFFFFF" Offset="0.978"/>
									<GradientStop Color="#FFFFFFFF" Offset="0.438"/>
									<GradientStop Color="#FFFFFFFF" Offset="0.661"/>
								</LinearGradientBrush>
							</Rectangle.OpacityMask>
						</Rectangle>
						<Rectangle Fill="{TemplateBinding Foreground}" Stroke="{x:Null}" HorizontalAlignment="Stretch" Margin="15,12,0,12" Width="Auto" Height="Auto"/>
						<Rectangle Stroke="{x:Null}" Opacity="0.7" HorizontalAlignment="Stretch" Margin="15,12,0,12" Width="Auto" Height="Auto">
							<Rectangle.Fill>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#4CFFFFFF" Offset="0"/>
									<GradientStop Color="#7FFFFFFF" Offset="0.228"/>
									<GradientStop Color="#00FFFFFF" Offset="0.643"/>
									<GradientStop Color="#33FFFFFF" Offset="0.987"/>
								</LinearGradientBrush>
							</Rectangle.Fill>
						</Rectangle>
						<Canvas Width="15" HorizontalAlignment="Left" Height="30" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5">
							<Canvas.RenderTransform>
								<TransformGroup>
									<ScaleTransform ScaleX="1"/>
									<SkewTransform AngleX="0" AngleY="0"/>
									<RotateTransform Angle="0"/>
									<TranslateTransform X="0" Y="0"/>
								</TransformGroup>
							</Canvas.RenderTransform>
							<Path x:Name="GlowingRing" Stretch="Fill" StrokeLineJoin="Round" Stroke="{x:Null}" Fill="{TemplateBinding Foreground}" Data="M 739.743,496.806C 743.885,496.806 747.243,500.164 747.243,504.306C 747.243,508.448 743.885,511.806 739.743,511.806C 735.601,511.806 732.243,508.448 732.243,504.306C 732.243,500.164 735.601,496.806 739.743,496.806 Z M 739.743,499.862C 742.197,499.862 744.187,501.851 744.187,504.306C 744.187,506.761 742.197,508.75 739.743,508.75C 737.288,508.75 735.298,506.761 735.298,504.306C 735.298,501.851 737.288,499.862 739.743,499.862 Z " Width="22.167" Height="22.167" Canvas.Left="-3.081" Canvas.Top="3.997" Visibility="Collapsed">
								<Path.OpacityMask>
									<RadialGradientBrush>
										<GradientStop Color="#00FFFFFF" Offset="0.496"/>
										<GradientStop Color="#FFFFFFFF" Offset="0.737"/>
										<GradientStop Color="#00FFFFFF" Offset="1"/>
									</RadialGradientBrush>
								</Path.OpacityMask>
							</Path>
							<Path x:Name="Path" Stretch="Fill" StrokeLineJoin="Round" Stroke="{x:Null}" Fill="{TemplateBinding Foreground}" Data="M 739.743,496.806C 743.885,496.806 747.243,500.164 747.243,504.306C 747.243,508.448 743.885,511.806 739.743,511.806C 735.601,511.806 732.243,508.448 732.243,504.306C 732.243,500.164 735.601,496.806 739.743,496.806 Z M 739.743,499.862C 742.197,499.862 744.187,501.851 744.187,504.306C 744.187,506.761 742.197,508.75 739.743,508.75C 737.288,508.75 735.298,506.761 735.298,504.306C 735.298,501.851 737.288,499.862 739.743,499.862 Z " Width="16" Height="16" Canvas.Top="7.078"/>
							<Path x:Name="Path_Copy" Stretch="Fill" StrokeLineJoin="Round" Stroke="{x:Null}" Data="M 739.743,496.806C 743.885,496.806 747.243,500.164 747.243,504.306C 747.243,508.448 743.885,511.806 739.743,511.806C 735.601,511.806 732.243,508.448 732.243,504.306C 732.243,500.164 735.601,496.806 739.743,496.806 Z M 739.743,499.862C 742.197,499.862 744.187,501.851 744.187,504.306C 744.187,506.761 742.197,508.75 739.743,508.75C 737.288,508.75 735.298,506.761 735.298,504.306C 735.298,501.851 737.288,499.862 739.743,499.862 Z " Width="16" Height="16" Opacity="0.5" Canvas.Top="7.078">
								<Path.Fill>
									<RadialGradientBrush>
										<RadialGradientBrush.RelativeTransform>
											<TransformGroup>
												<ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1.122" ScaleY="1.122"/>
												<SkewTransform AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5"/>
												<RotateTransform Angle="0" CenterX="0.5" CenterY="0.5"/>
												<TranslateTransform X="0.032" Y="-0.051"/>
											</TransformGroup>
										</RadialGradientBrush.RelativeTransform>
										<GradientStop Color="#FFFFFFFF" Offset="0.714"/>
										<GradientStop Color="#00FFFFFF" Offset="0.571"/>
										<GradientStop Color="#00FFFFFF" Offset="0.933"/>
									</RadialGradientBrush>
								</Path.Fill>
							</Path>
							<Canvas Width="8.359" Height="8.359" Canvas.Left="3.847" Canvas.Top="10.838" x:Name="CurrentCanvas" Visibility="Collapsed">
								<Ellipse Width="8.359" Height="8.359" Fill="{TemplateBinding Foreground}" Stroke="{x:Null}" StrokeLineJoin="Round"/>
								<Ellipse Width="8.359" Height="8.359" Stroke="{x:Null}" StrokeLineJoin="Round">
									<Ellipse.Fill>
										<RadialGradientBrush GradientOrigin="0.714,0.229">
											<GradientStop Color="#00FFFFFF" Offset="1"/>
											<GradientStop Color="#FFFFFFFF" Offset="0"/>
										</RadialGradientBrush>
									</Ellipse.Fill>
								</Ellipse>
							</Canvas>
						</Canvas>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="Status" Value="Current">
							<Setter Property="Visibility" TargetName="CurrentCanvas" Value="Visible"/>
						</Trigger>
						<Trigger Property="Status" Value="Hit">
							<Trigger.ExitActions>
								<StopStoryboard BeginStoryboardName="GlowingStoryboard_BeginStoryboard"/>
							</Trigger.ExitActions>
							<Trigger.EnterActions>
								<BeginStoryboard x:Name="GlowingStoryboard_BeginStoryboard" Storyboard="{StaticResource GlowingStoryboard}"/>
							</Trigger.EnterActions>
							<Setter Property="Visibility" TargetName="GlowingRing" Value="Visible"/>
							<Setter Property="Visibility" TargetName="GlowingRectangle" Value="Visible"/>
						</Trigger>
						<Trigger Property="Status" Value="Missed">
							<Setter Property="Opacity" TargetName="grid" Value="0.3"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Color x:Key="GemLine1Color">#FFFF1111</Color>
	<Color x:Key="GemLine2Color">#FFFF6C04</Color>
	<Color x:Key="GemLine3Color">#FFFFDD00</Color>
	<Color x:Key="GemLine4Color">#FF4DFF00</Color>
	<Color x:Key="GemLine5Color">#FF00D685</Color>
	<FontFamily x:Key="DefaultFont">Zero Threes</FontFamily>
</ResourceDictionary>